import { url } from "@/api/url"

import request from '@/utils/request'

export function listExecutor(query) {
    return request({
        url: url + '/jobgroup/pageList',
        method: 'get',
        params: query
    })
}

export function deleteExecutor(id) {
    return request({
        url: url + '/jobgroup/remove',
        method: 'post',
        params: { "id": id }
    })
}

export function updateExecutor(param) {
    return request({
        url: url + '/jobgroup/update',
        method: 'post',
        data: param
    })
}

export function addExecutor(param) {
    return request({
        url: url + '/jobgroup/save',
        method: 'post',
        data: param
    })
}


export function queryExecutor(id) {
    return request({
        url: url + '/jobgroup/loadById',
        method: 'get',
        params: { "id": id }
    })
}


export function listExecutorRouteStrategy() {
    return request({
        url: url + '/jobgroup/getRouteStrategyList',
        method: 'get',
    })
}
export function listExecutorBlockStrategy() {
    return request({
        url: url + '/jobgroup/getBlockStrategyList',
        method: 'get',
    })
}